# 文章初步信息序列化器
from rest_framework import serializers

from ImageBed import models


class HistorySerializer(serializers.ModelSerializer):
    class Meta:
        model = models.ImageBedRecord
        fields = [
            "pk",
            "origin_image_name",
            "new_image_name",
            "image_path",
            "image_size",
            "upload_time",
        ]
